import { defineStore } from "pinia";
import type {INavMenu} from  "@/api/type";
export const useUserStore=defineStore("user",{
    state(){
        return {
         aa:10
        }
    }
})
interface IMainState{
    navMenu:INavMenu[]
}
//缓存菜单数据
export const menuStore=defineStore('menu',{
    state():IMainState{
        return {
            navMenu:[]
        }
    },
    actions:{
        setNavMenu(data:INavMenu){
            this.navMenu=data;
        }
    }
})

